package com.maxie.proxy.service;

import com.maxie.proxy.annotion.ParamLog;
import com.maxie.proxy.entity.Person;

import java.util.UUID;

public class PersonServiceImpl implements PersonService{
    @Override
    
    public Person insert(Person person) {
        String uuid = UUID.randomUUID().toString();
        person.setId(uuid);
        System.out.println("新增人員");
        return person;
    }

    @Override
    
    public Person update(Person person) {
        System.out.println("更新人員");
        person.setAge("18");
        return person;
    }

    @Override
    
    public String delete(Person person) {
        System.out.println("刪除人員");
        return person.getId();
    }
}
